//
//  CLActionEvent.m
//  ComponentLinkDemo
//
//  Created by wenchao on 17/3/6.
//  Copyright © 2017年 zhenby. All rights reserved.
//

#import "CLActionEvent.h"
#import "CLActionEvent_private.h"

@implementation CLActionEvent

+ (nullable instancetype)actionWithName:(NSString *)actionName
                             customData:(nullable NSDictionary *)customData
{
    CLActionEvent* action = [[CLActionEvent alloc] initWithActionName:actionName customData:customData];
    return action;
}

- (instancetype)initWithActionName:(NSString *)actionName
                        customData:(NSDictionary *)customData
{
    self = [super init];
    if (self) {
        _actionName = actionName;
        _customData = customData;
    }
    return self;
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"<actionName:%@,customData:%@>",self.actionName,self.customData];
}

@end
